# Create your views here.

from django.views import View

from model.models import User
from server.utils import Response, Request, LoginRequiredPerson, Verify, Code


class ApplyAdminView(LoginRequiredPerson, View):
    """ person user applies to become an administrator """

    @Request.getJson
    def post(self, request):
        """  """
        request.user.set_status(User.Status.applying)
        return Response.Json()
